-----------------------------------------------------------------------------------------------------------------------------------------
--处理的Main文件
-----------------------------------------------------------------------------------------------------------------------------------------
print("start at "..os.date())
globalStrLLMakeHomePath = os.getenv("LLMAKE_HOME")
if nil == globalStrLLMakeHomePath then
	print("LLMake Home Path is not set ,Please set it")
	os.exit(-1)
end
globalStrLLMakeHomeScriptPath = globalStrLLMakeHomePath.."/script"
globalStrLLMakeHomeBinPath = globalStrLLMakeHomePath.."/bin"
globalStrLLMakeErrorHandler = globalStrLLMakeHomeScriptPath.."/ErrorHandler.lua"
-----------------------------------------------------------------------------------------------------------------------------------------
--common tools 
-----------------------------------------------------------------------------------------------------------------------------------------
package.path = package.path..";"..globalStrLLMakeHomeScriptPath.."/?.lua"
-----------------------------------------------------------------------------------------------------------------------------------------
--C tool 
-----------------------------------------------------------------------------------------------------------------------------------------
dofile(globalStrLLMakeHomeScriptPath.."/NativeTools.lua")
-----------------------------------------------------------------------------------------------------------------------------------------
--信息收集
-----------------------------------------------------------------------------------------------------------------------------------------
dofile(globalStrLLMakeHomeScriptPath.."/InfoCollect.lua")
-----------------------------------------------------------------------------------------------------------------------------------------
--解析文件执行
-----------------------------------------------------------------------------------------------------------------------------------------
dofile(globalStrLLMakeHomeScriptPath.."/Token.lua")
dofile(globalStrLLMakeHomeScriptPath.."/LexParse.lua")
dofile(globalStrLLMakeHomeScriptPath.."/CommandParse.lua")
if false == globalBoolMakeCleanFlag then
	dofile(globalStrLLMakeHomeScriptPath.."/CommandExec.lua")
	dofile(globalStrLLMakeHomeScriptPath.."/BC2Native.lua")
else
	dofile(globalStrLLMakeHomeScriptPath.."/Makeclean.lua")
end
-----------------------------------------------------------------------------------------------------------------------------------------
--删除临时文件
-----------------------------------------------------------------------------------------------------------------------------------------
local luaAutoGenOSCommandTmpFile = "luaAutoGenOSCommandTmpFile.txt"
os.remove(luaAutoGenOSCommandTmpFile)
print("complete at "..os.date() )
